package edu.neumont.pro180._2009_q2.chess.pieceFactory;

import java.awt.Point;

import edu.neumont.pro180._2009_q2.GamePiece;
import edu.neumont.pro180._2009_q2.chess.Pawn;

public class PawnFactory extends ChessPieceFactory {
	private static ChessPieceFactory instance;

	public static ChessPieceFactory getInstance() {
		if (instance == null) {
			instance = new PawnFactory();
		}
		return instance;
	}
	
	private Point pawnDirection;
	public void setPawnDirection(Point pawnDirection) {
		this.pawnDirection = pawnDirection;
	}

	private PawnFactory() {
	}

	@Override
	protected GamePiece makeCustomPiece() {
		return new Pawn(pawnDirection);
	}
}
